package edu.java.texbooks.scjp.threads.test06;

/**
 * 
 * Watch execution of call stack of threads in Debug perspective
 * 
 */
public class Test {
	public static void main(String[] args) {

		System.out.println("Hello");

		MyThreadClass mtc = new MyThreadClass();
		Thread myThread = new Thread(mtc);
		VipThread vt = new VipThread();
		vt.start();
		myThread.start();
		method1();
		method2();

	}

	public static void method1() {
		System.out.println("Method 1");
		method11();
		method12();
	}

	public static void method2() {
		System.out.println("Method 2");
	}

	public static void method11() {
		System.out.println("Method 1.1");
		method111();
	}

	public static void method12() {
		System.out.println("Method 1.2");
	}

	public static void method111() {
		System.out.println("Method 1.1.1");
	}
}
